
<style>
    #property-map img{max-width:none}
</style>

<?php 
$listingtoview['media'] = $this->mdl_listingmapmodel->get_media($listingtoview['Listing_ID'], "Gallery", 20);
$thumb = "";
if(isset($listingtoview['media']) && is_array($listingtoview['media']) && count($listingtoview['media']) > 0) {
	foreach ($listingtoview['media'] as $key => $img) {
		if ($key == 0) {
			//get thumb for property map
			$thumb = $this->imagemodel->resize($img->FileName . $img->FileExtension, THUMB_IMAGE_WIDTH, THUMB_IMAGE_HEIGHT, HTTP_PROJECT_LISTING_IMAGE . $listingtoview['Listing_ID'] . '/', $this->config->item('HTTP_LISTING_MEDIA_IMAGE') . $listingtoview['Listing_ID'] . '/');
			break;
		}
	}
}
?>
<input type="hidden" id="latListing" value="<?php echo $listingtoview['Latitude']; ?>" /> 
<input type="hidden" id="lngListing" value="<?php echo $listingtoview['Longitude']; ?>" />
<input type="hidden" id="priceListing" value="<?php if($listingtoview['Price_Min'] > 0) { ?> <?php echo $listingtoview['PriceUnit'] . " " . number_format(($listingtoview['Price_Min']), 0, '.', ','); ?> <?php } else { ?> <?php echo "Price On Application"; ?> <?php } ?>" />
<input type="hidden" id="areaListing" value="<?php echo number_format($listingtoview['Size_Min']) . ' ' . $listingtoview['SizeUnit']; ?>" />
<input type="hidden" id="thumbListing" value="<?php echo $thumb; ?>" />
<input type="hidden" id="titleListing" value="<?php echo $listingtoview['ProjectName']; ?>" />
<div id="property-map" style="height: 480px; width: 100%;"></div>

